package com.nbjtjc.safe.mapper.danger;

import com.nbjtjc.safe.model.danger.DangerSafePlanList;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DangerSafePlanListMapper extends MyMapper<DangerSafePlanList> {
    @Delete("delete from danger_safe_plan_list where safe_plan_id=#{planId}")
    int deletePlanListByPlanId(@Param("planId") int safePlanId);

    List<DangerSafePlanList> search(@Param("dspl") DangerSafePlanList dangerSafePlanList);

}